package vnc;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JPanel;
//import javax.swing.UIDefaults;
//import javax.swing.UIManager;

public class JPanelHeader extends JPanel {
	
	public void paintComponent(Graphics g){
		//UIDefaults uid = UIManager.getDefaults();
		Graphics2D g2d = (Graphics2D)g;
		Dimension d = this.getSize();
		
		g2d.setPaint(new GradientPaint(0, 0, new Color(208, 208, 208), 0, d.height, new Color(167, 167, 167), true));
		g2d.fillRect(0, 0, d.width, d.height);
		
		g2d.setColor(new Color(129, 129, 129));
		g2d.drawLine(0, d.height-1, d.width, d.height-1);
		
		g2d.setColor(new Color(226, 226, 226));
		g2d.drawLine(0, 0, d.width, 0);
		
		/*
		g2d.setPaint(new GradientPaint(0, 0, uid.getColor("ToolBar.light"), 0, d.height, uid.getColor("ToolBar.shadow"), true));
		g2d.fillRect(0, 0, d.width, d.height);
		
		g2d.setColor(uid.getColor("ToolBar.light"));
		g2d.drawLine(0, d.height-2, d.width, d.height-2);
		
		g2d.setColor(uid.getColor("ToolBar.highlight"));
		g2d.drawLine(0, d.height-1, d.width, d.height-1);
		*/
	}

}